package com.jt.controller;

import com.jt.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

@RestController
@RequestMapping("/account")
public class AccountController {
    @Autowired
    public AccountService accountService;

    @GetMapping("/delete/{userId}/{money}")
    public boolean deleteAccount(@PathVariable("userId") String userId, @PathVariable("money")BigDecimal money) {
        return accountService.deleteAccount(userId, money);
    }

}
